import request from '@/utils/request'

// 查询OMS发货确认列表
export function listDeliverbill(query) {
  return request({
    url: '/settlementCenter/basebill/deliverbill/list',
    method: 'get',
    params: query
  })
}

// 查询OMS发货确认详细
export function getDeliverbill(id) {
  return request({
    url: '/settlementCenter/basebill/deliverbill/' + id,
    method: 'get'
  })
}

// 新增OMS发货确认
export function addDeliverbill(data) {
  return request({
    url: '/settlementCenter/basebill/deliverbill',
    method: 'post',
    data: data
  })
}

// 修改OMS发货确认
export function updateDeliverbill(data) {
  return request({
    url: '/settlementCenter/basebill/deliverbill',
    method: 'put',
    data: data
  })
}

// 删除OMS发货确认
export function delDeliverbill(id) {
  return request({
    url: '/settlementCenter/basebill/deliverbill/' + id,
    method: 'delete'
  })
}
